const mongoose = require('mongoose');
const {Schema} = mongoose;
const DeptSchema = new Schema({
  deptName: String,
  deptId:[mongoose.Types.ObjectId],
  userId:String,
  userName:String,
  userEmail:String,
  updateTime:{
    type: Date,
    default: Date.now
},
  createTime:{
    type: Date,
    default: Date.now
},
  remark: String // 备注,模型只能多不能少
});
module.exports = mongoose.model('dept', DeptSchema);